/*
 * Copyright (c) 2019-2020, https://api.iot.10086.cn/(https://gitee.com/cmcc-iot-api/iot-card-open-application/).
 */
package cn.iot.card.open.terminal.dto;

import org.apache.commons.lang3.StringUtils;

/**
 * 物联卡终端控制下行空短信 DTO
 */
public class BlankSmsDTO {

    /**
     * 发送控制短信的物联卡号码
     */
    private String msisdns;

    /**
     * 指定短信有效期，单位：秒。非必传
     */
    private String validTime;

    public String getMsisdns() {
        return msisdns;
    }

    public void setMsisdns(String msisdns) {
        this.msisdns = msisdns;
    }

    public String getValidTime() {
        return validTime;
    }

    public void setValidTime(String validTime) {
        this.validTime = validTime;
    }

    @Override
    public String toString() {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append("发送控制短信的物联卡号码:").append(msisdns);
        if (StringUtils.isNoneEmpty(validTime)) {
            stringBuilder.append("发送控制短信的有效期:").append(validTime).append("秒");
        }
        return stringBuilder.toString();
    }
}
